package coderun

import (
	"myOJ/db"
	"strings"
)

func pyMakeMains(ptitle string) map[string]string {
	testRowCases := db.GetTestCase(ptitle)

	testCases := make(map[string]string, 10)
	for key, value := range testRowCases {
		testCase := strings.Split(key, "\r\n")
		testCaseString := strings.Join(testCase, ",")
		testCases[testCaseString] = value
	}
	return testCases
}
